package org.arch_learn.dubbo_demo.dubbo_spi_demo;

import org.apache.dubbo.common.extension.ExtensionLoader;
import org.arch_learn.dubbo_demo.dubbo_spi_demo_api.service.HelloService;

public class DubboSpiMain {
    public static void main(String[] args) {
        ExtensionLoader<HelloService> extensionLoader = ExtensionLoader.getExtensionLoader(HelloService.class);
        for (HelloService helloService : extensionLoader.getSupportedExtensionInstances()) {
            String hello = helloService.sayHello("world");
            System.out.println(hello);
        }
    }
}
